﻿<!DOCTYPE html>
<html>
<head>
<title>出院费用结清</title>
<meta charset="utf-8">
<meta name="keywords" content="短照中心-湘潭市康复养老中心;">
<meta name="description" content="短照中心-湘潭市康复养老中心;">
<link rel="stylesheet" rev="stylesheet" href="css/framepage.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="js/waitBox/wait.css">
<script src="js/vue.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/JSON-js-master/json2.js"></script>
<script src="js/waitBox/wait.js"></script>
<script src="js/purl.js"></script>
</head>

<body style="background:rbg(216,216,216);">
<div class="form_div">
  <h3>出院费用结清</h3>
<!--此处不再需要手工搜索，相关参数由3-4-2cyyg.html传来，如果还需从服务器获得接口参数，改为自动获取
  <ul>
    <li><span class="tit" style="width:70px;">选择对象：</span></li>
    <li style="line-height:36px;"><span>
      <input type="text" placeholder="请输入长者姓名或身份证" id="searchVal" style="width:220px;position:absolute;top:0;left:0;"/>
      </span><span style="position:absolute;left:235px;top:0;">
      <input type="button" value="查询" class="button_s button1" onclick="findElderInfoByType(1);" style="height:36px;" />
      </span></li>
  </ul>
-->
  <div style="clear:both;"></div>
  <div style="margin:0;padding:0;" id="vue_vm_list">
    <div style="margin:0;padding:0;" v-for="todo in todos">
      <h3>入院号：{{todo.elderBeHospitalForm.beNumber}}</h3>
      <h3>长者：</h3>
      <ul v-if="todo.beHospitalFeeForm && todo.beHospitalFeeForm.isFinancialCs==1">
        <li><span class="tit" style="width:70px;">金融客户：</span></li>
        <li><span>银行：{{todo.beHospitalFeeForm.bankName}}</span></li>
        <li><span>联系人：{{todo.beHospitalFeeForm.contactName}}</span></li>
        <li><span>联系电话：{{todo.beHospitalFeeForm.contactPhoneNumer}}</span></li>
      </ul>
      <ul>
        <li style="width:70px;"><span>{{todo.elder.name}}</span></li>
        <li><span>{{todo.building.buildingName}} {{todo.floor.floorName}} {{todo.room.roomNumber}}室 {{todo.bed.bedNumber}}床</span></li>
        <li><span style="color:#ff0000;">科室操作人：{{subjectRoomManager}}</span></li>
        <li><span style="color:#ff0000;">操作时间：{{createTime}}</span></li>
      </ul>
    </div>
  </div>
  <div style="clear:both;"></div>
  <div style="margin:0;padding:0;" id="vue_vm_list_elderOutCost">
    <div style="margin:0;padding:0;" v-for="todo in todos">
      <h3>现存金额</h3>
      <ul>
        <li><span class="tit" style="width:100px;">已缴押金：</span></li>
        <li><span>{{todo.pledge}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit" style="width:100px;">钱包余额：</span></li>
        <li><span>{{todo.walletBalance}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit" style="width:100px;">饭卡余额：</span></li>
        <li><span>{{todo.mealCardBalance}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit" style="width:100px;">合计：</span></li>
        <li><span>{{getBalanceTotal(todo)}}元</span></li>
      </ul>
      <div style="clear:both;"></div>
      <h3>未结清费用</h3>
      <ul>
        <li><span class="tit">赔偿金：</span></li>
        <div style="margin:0;padding:0;" v-for="elderCompDescForm in todo.elderCompDescForms">
          <li><span>{{elderCompDescForm.assetName}}：{{elderCompDescForm.price}}X{{elderCompDescForm.compQuantity}}，
            {{(elderCompDescForm.price*elderCompDescForm.compQuantity).toFixed(2)}}元</span></li>
        </div>
        <li><span>合计：{{getElderCompDescFormsTotal(todo.elderCompDescForms)}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit">欠费：</span></li>
        <div style="margin:0;padding:0;" v-for="arrearageDescForm in todo.arrearageDescForms">
          <li><span>{{arrearageDescForm.arrearageDesc}}：{{arrearageDescForm.price}}X{{arrearageDescForm.arrearageQuantity}}，
            {{(arrearageDescForm.price*arrearageDescForm.arrearageQuantity).toFixed(2)}}元</span></li>
        </div>
        <li><span>合计：{{getArrearageDescFormsTotal(todo.arrearageDescForms)}}元</span></li>
      </ul>
      <ul>
        <li><span class="tit">出院结清（现存金额 - 未结清费用）：</span></li>
        <li><span style="color:#ff0000;">{{getRemainTotalText(todo)}}</span></li>
      </ul>
    </div>
  </div>

  <div class="for_ie_div"><!--为兼容IE-->
    <ul>
      <li style="width:160px;">
        <input type="button" id="btnCostSettlementOK" value="下一步" class="button button1" onclick="elderOutCost_costSettlement();" style="height:38px;"/>
      </li>
    </ul>
  </div>
</div>
<div style="clear:both;"></div>
<script src="js/common.js"></script>
<script src="js/common_function.js"></script>
<script src="js/busi/elder_query.js"></script>
<script src="js/busi/be_hospital_fees.js"></script>
<script src="js/busi/elder_out_order_outlay_3-4-3.js"></script>
</body>
</html>